using System;
using UnityEngine;

[Serializable]
public struct KeyframeObjectTransform
{
	public enum ModeLoop
	{
		SingleFrame,
		Loop,
		PlayOnce
	}

	public int frame;

	public float rotation;

	public float x;

	public float y;

	public string libraryName;

	public int frameSprite;

	public ModeLoop loop;

	public KeyframeObjectTransform(int frame, float rotation, float x, float y)
	{
		this.frame = frame;
		this.rotation = rotation;
		this.x = Mathf.Round(x * 100f) / 100f;
		this.y = Mathf.Round(y * 100f) / 100f;
		frameSprite = 0;
		loop = ModeLoop.SingleFrame;
		libraryName = string.Empty;
	}
}
